package com.xiaoyu.client;

import android.content.Context;
import android.content.Intent;

import com.xiaoyu.client.ui.activity.login.LoginActivity;
import com.xiaoyu.commonlib.plug.IMasterPlugRules;

public class ClientPlugRuleImpl implements IMasterPlugRules{
    @Override
    public void goToLoginActivity() {
        Context context = ClientApplication.getAppContext();
        Intent intent = new Intent(context, LoginActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        context.startActivity(intent);
    }
}
